package com.mall.entity.groupbooking;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author White
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class GbRecord {
    /**
     * 主键
     */
    private Long id;
    /**
     * 参团用户
     */
    private Long uid;
    /**
     * 团id
     */
    private Integer rootId;
    /**
     * 参团时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    /**
     * 拼团状态(0-参团失败,1-参团成功)
     */
    private String status;


    /**
     * 用户名称
     */
    private String name;

    /**
     * 用户头像
     */
    private String url;
}
